package Chef;

/**
 * @author ：wang-ting
 * @Date：2025/5/28 23:08
 */


/**
 * 本关任务：对测试类TestChef的代码及测试输出进行分析，在此基础上完成厨师类Chef类及其子类ChineseChef、FrenchChef和ItalianChef的设计。
 *平台会对你编写的代码进行测试，输出如下：
 * Different chefs will make different types of fish
 * Different chefs make different soups
 * Different chefs make different types of noodles
 *
 * Chinese chefs love to make steamed fish
 * Chinese chefs love to make vegetable soup
 * Chinese chefs love making beef noodles
 *
 * French chefs love to make smoked fish
 * French chefs love making seafood soups
 * Different chefs make different types of noodles
 *
 * Different chefs will make different types of fish
 * Different chefs make different soups
 * Italian chefs love making spaghetti
 */
public class TestChef {
    public static void main(String[] args) {
        Chef chef = new Chef();
        ChineseChef chineseChef = new ChineseChef();
        FrenchChef frenchChef = new FrenchChef();
        ItalianChef italianChef = new ItalianChef();
        Chef c = chef;
        c.makeFish();
        c.makeSoap();
        c.makeNoodles();
        System.out.println();
        c = chineseChef;
        c.makeFish();
        c.makeSoap();
        c.makeNoodles();
        System.out.println();
        c = frenchChef;
        c.makeFish();
        c.makeSoap();
        c.makeNoodles();
        System.out.println();
        c = italianChef;
        c.makeFish();
        c.makeSoap();
        c.makeNoodles();
    }
}
